//
//  Bullet.h
//  Project 5
//
//  Created by Nguyen Tan Loc on 6/18/13.
//  Copyright (c) 2013 Nguyen Tan Loc. All rights reserved.
//

#import "CCSprite.h"
#import "PhysicListener.h"
#import "PhysicBody.h"

@interface Bullet : CCSprite <PhysicListener>
{
    BULLET_TYPE mType;
    COLOR_TYPE mColorType;
    float   mRadius; // may be angle if type == laser
    BOOL mIsCheckCollision;
    BOOL mIsDestroy;
    CGPoint mDirection;
}

@property (nonatomic, readonly) BULLET_TYPE _type;
@property (nonatomic, readonly) COLOR_TYPE _colorType;

-(id) initWithType:(BULLET_TYPE)type color:(COLOR_TYPE)color;
-(void) fireWithDirection:(CGPoint)direction;
-(void) setType:(BULLET_TYPE)type color:(COLOR_TYPE)color;
-(void) runEffect:(EFFECT_TYPE)effect;
-(BOOL) isDestroy;

@end
